package org.codeart.driver.remote;

import org.codeart.common.response.TerminalResponse;
import org.codeart.common.response.TraceResponse;
import org.codeart.common.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-map")
public interface ServiceMapClient {

    @PostMapping("/terminal/add")
    R<TerminalResponse> addTerminal(@RequestParam("name") String name, @RequestParam("desc") String desc);
    
    @PostMapping("/trace/add")
    R<TraceResponse> addTrace(@RequestParam("tid") Integer tid);
}
